home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
comm
/
tskerm25.zip
/
SAMPLE.CLL
< prev
next >
Wrap
Text File
|
1988-08-12
|
2KB
|
35 lines
;
; SAMPLE.CLL by Timo Salmi 12-Aug-88
;
; This script file demonstrates how to build an autodialing system to be used
; with the take command. This particular script calls a VAX/VMS system.
;
CLEAR ;Clear the input buffer
SET COUNT 3 ;Set the counter (substitute 3 with your choice)
OUTPUT AT\13 ;Wake up the modem
:TRYAGAIN ;Label for returning (use <ESC> for exiting>
PAUSE 4 ;Let it get ready
OUTPUT ATDT9999999\13 ;Call the VAX (substitute the relevant number)
INPUT 35 CONNECT 1200 ;Wait for a connection (you can try to decrease 35)
IF FAILURE GOTO NOCNECT ;Just what it says
OUTPUT \13 ;Start the login sequence
INPUT 20 Username ;Wait for Username prompt
IF FAILURE GOTO ERR1
OUTPUT USERNAME\13 ;Substitute your username here
INPUT 20 Password ;Wait for the password prompt
IF FAILURE GOTO ERR2
OUTPUT SECRET\13 ;Substitute your password here
GOTO CNECT ;To making the connection
:NOCNECT ;Subroutine for no connection
IF COUNT GOTO TRYAGAIN ;Try again until count is exhausted
ECHO Failed to get a carrier in three attempts\13
HANGUP ;Just to make sure
STOP ;Enough!
:ERR1
ECHO Failed to encounter the username prompt\13
STOP ;Return to the manual method
:ERR2
ECHO Failed to encounter the password prompt\13
STOP ;Return to the manual method
:CNECT ;We've made it!
CONNECT